public class SharedVariable3 {
    private int sharedVariable = 0;

    public SharedVariable3 set() {
        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        sharedVariable = 3;
        return this;
    }
    public int get() {
        return sharedVariable;
    }
}
